$(function(){
	//getAllBankCard();
});

function saveBankmsg(){
	var bankName = $("#bankName").val();
	alert(bankName);
	var phone = $("#phone").val();
	if(bankName == '请选择'){lh.alert("请选择银行");return;}
	if(!phone){lh.alert("请输入预留银行电话");return;}
	var param = {bankName:bankName,phone:phone};
	lh.post('front','/saveBankmsg',param,function(rsp){
		if(rsp.success){
			lh.alert(rsp.msg,jumpTobankCardManager);
		}else{
			lh.alert(rsp.msg);
		}
	});
}

function jumpTobankCardManager(){
	lh.jumpR('/bankCardManager');
}